package com.ssyu.examination.system.entity;

import java.util.Date;

public class SystemEntiy {

	private int id;
	private String code;
	private String password;
	private String name;
	private String sex;
	private String phone;
	private String email;
	private Date createTime;
	private int operateUserId;
	private Date operateTime;
	private int roleId;
	private int classId;
	private String state;
	private String memo;

	private String role__name;
	private String class__name;

	public SystemEntiy() {
		super();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		if (sex.equals("1")) {
			sex = "男";
		} else {
			sex = "女";
		}
		return sex;
	}

	public void setSex(String sex) {
		if (sex.equals("男")) {
			this.sex = "1";
		} else {
			this.sex = "2";
		}

	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getOperateUserId() {
		return operateUserId;
	}

	public void setOperateUserId(int operateUserId) {
		this.operateUserId = operateUserId;
	}

	public Date getOperateTime() {
		return operateTime;
	}

	public void setOperateTime(Date operateTime) {
		this.operateTime = operateTime;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public int getClassId() {
		return classId;
	}

	public void setClassId(int classId) {
		this.classId = classId;
	}

	public String getState() {
		if (state.equals("1")) {
			state = "启用";
		} else {
			state = "禁用";
		}
		return state;
	}

	public void setState(String state) {
		if (state.equals("启用")) {
			this.state = "1";
		} else {
			this.state = "2";
		}
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getRole__name() {
		return role__name;
	}

	public void setRole__name(String role__name) {
		this.role__name = role__name;
	}

	public String getClass__name() {
		return class__name;
	}

	public void setClass__name(String class__name) {
		this.class__name = class__name;
	}
}
